<template>
	<view class="page" :style="themeColor">
		<view
			class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex CancelAccount_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-stretch justify-between CancelAccount_fd0_0'>
				<view class='flex flex-wrap align-center CancelAccount_fd0_0_c0'>
					<text class='fu-iconfont2  CancelAccount_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">&#xe794;</text>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='CancelAccount_fd0_0_c1_c0'>注销账号</text>
				</view>
				<view class='flex align-center justify-end CancelAccount_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		
		<view class="loading_css" v-if="!isShow">
			<u-loading size="36" color="#4177DD"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<block v-else>
			<!---注销账号协议flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch CancelAccount_flex_1">
				<view class='CancelAccount_fd1_0'>
					<u-parse :html="dataDetails.content"></u-parse>
				</view>
			</view>
			<!---注销账号协议flex布局结束-->
			<view class="flex flex-wrap align-center justify-center benben-position-layout flex CancelAccount_flex_2">
				<button class='flex-sub CancelAccount_fd2_0' @tap.stop="jumpFunc">填写注销申请</button>
			
			</view>
		</block>
		
		<view :style="{height: '110rpx'}"></view>


	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"dataStatus": {
					"status": "",
					"rule": "",
					"reason": ""
				},
				"dataDetails": {},
				"isShow": false
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.DataDetailsFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.DataStatusFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取说明
			async DataDetailsFunc() {
				//请求方法
				//数据验证
			
				let datadataDetails = await this.$api.post(global.apiUrls.post643670477b206, {
					aid: 4
				});
				this.isShow = true;
				if (datadataDetails.data.code != 1) {
					this.$message.info(datadataDetails.data.msg);
					return
				}
				let infodataDetails = datadataDetails.data;
				this.dataDetails = infodataDetails.data
			},
			//判断跳转
			jumpFunc() {
				if (this.dataStatus.status == '-1') {
					this.$urouter.redirectTo(`/pages/xtsz/logOutReason/logOutReason`);
				}
				if (this.dataStatus.status != '-1') {
					this.$urouter.redirectTo(`/pages/xtsz/logOutSubmit/logOutSubmit?type=1`);
				}
				return
			},
			//获取注销状态
			async DataStatusFunc() {
				//请求方法
				//数据验证

				let datadataStatus = await this.$api.post(global.apiUrls.post64367eab91916, {

				});
				if (datadataStatus.data.code != 1) {
					this.$message.info(datadataStatus.data.msg);
					return
				}
				let infodataStatus = datadataStatus.data;
				this.dataStatus = infodataStatus.data
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(246, 247, 249, 1);
		background-size: 100% auto !important;
	}

	.CancelAccount_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.CancelAccount_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.CancelAccount_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.CancelAccount_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.CancelAccount_fd0_0_c0 {
		width: 100rpx;
	}

	.CancelAccount_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.CancelAccount_flex_1 {
		background: #fff;
		font-size: 32rpx;
		background-size: 100% auto !important;
		padding: 32rpx 32rpx 32rpx 32rpx;
	}

	.CancelAccount_fd1_0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
	}

	.CancelAccount_flex_2 {
		width: 750rpx;
		height: 110rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
	}

	.CancelAccount_fd2_0 {
		background: rgba(238, 63, 77, 1);
		font-size: 32rpx;
		color: rgba(255, 255, 255, 1);
		height: 110rpx;
		line-height: 110rpx;
		font-weight: 500;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		width: 750rpx;
	}
</style>